import request from '@/utils/request'
//teacher.js相当于是连接后台接口的js 
export default{
    //按条件分页查询
    paginationQueryEduTeacherByCondition(pageNumber,pageSize,teacherCondition){
        return request({
            url: '/edu/teacher/paginationQueryEduTeacherByCondition/'+pageNumber+'/'+pageSize,
            method: 'get',
            params: teacherCondition
          })
    },
    //删除讲师
    deleteEduTeacherById(teacherId){
        return request({
            url: '/edu/teacher/'+teacherId,
            method: 'delete'
          })
    },
    //添加讲师
    insertEduTeacher(eduTeacher){
        return request({
            url: '/edu/teacher',
            method: 'post',
            params:eduTeacher
    
          })
    },
    //根据id查询讲师
    queryEduTeacherById(id){
        return request({
            url: '/edu/teacher/'+id,
            method: 'get',  
          })
    },
    //更新讲师数据
    updateEduTeacher(eduTeacher){
        return request({
            url: '/edu/teacher',
            method: 'put',  
            params: eduTeacher
          })
    }
 
   

   
}
